﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Security.Helpers
{
    public static class TypeExtensions
    {
        public static bool IsBaseOf(this Type type, Type baseType)
        {
            return type.Equals(baseType) || type.IsSubclassOf(baseType);
        }
    }
}
